home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct02040.geo / 00026.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  19.0 KB  |  850 lines

  1. on initLesson
  2.   DisableBTNS()
  3.   setRollName(EMPTY)
  4.   set the visible of sprite 48 to 0
  5.   updateStage()
  6.   InitSnakelogic()
  7.   RestoreHilites()
  8.   Set_BACKSprite(47)
  9.   Set_NEXTSprite(46)
  10.   Set_HelpSprite(45)
  11.   Set_SoundSprite(44)
  12.   Set_NOTEPADSprite(43)
  13.   Set_GLOSSARYSprite(42)
  14.   setTimer(30)
  15.   set_MarkSprite(2)
  16.   Set_NavigatorHL(5)
  17.   Set_MainSprite(6)
  18.   Set_IndexSprite(7)
  19.   Set_FindSprite(9)
  20.   Set_TagWDSprite(8)
  21.   setTimer(30)
  22.   repeat with i = 42 to 47
  23.     set the immediate of sprite i to 1
  24.     set the puppet of sprite i to 1
  25.   end repeat
  26.   set the puppet of sprite get_NavigatorHL() to 1
  27.   set the puppet of sprite Get_MarkSprite() to 1
  28.   set the mouseDownScript to "CheckOpenWindow"
  29. end
  30.  
  31. on InitSubjectSprite
  32.   if Get_ScreenSubject() <> "00" then
  33.     Set_SubjectSprite(39)
  34.     set the puppet of sprite Get_SubjectSprite() to 1
  35.     set the height of sprite Get_SubjectSprite() to integer(line integer(Get_ScreenSubject()) of Get_SubjectHeight())
  36.     UpdateCursors(Get_SubjectSprite(), 4)
  37.   end if
  38. end
  39.  
  40. on GoToIntro
  41.   if Get_ScreenSubject() <> "00" then
  42.     set theNum to integer(Get_ScreenSubject())
  43.     SaveSeenScreens()
  44.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  45.   end if
  46. end
  47.  
  48. on Set_SubjectSprite theSp
  49.   global SubjectSprite
  50.   set SubjectSprite to theSp
  51. end
  52.  
  53. on Get_SubjectSprite
  54.   global SubjectSprite
  55.   return SubjectSprite
  56. end
  57.  
  58. on Set_SubjectHeight theSp
  59.   global SubjectHeight
  60.   set SubjectHeight to theSp
  61. end
  62.  
  63. on Get_SubjectHeight
  64.   global SubjectHeight
  65.   return SubjectHeight
  66. end
  67.  
  68. on CheckForTagWd
  69.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  70.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  71.     set the cursor of sprite 48 to [400, 401]
  72.   end if
  73. end
  74.  
  75. on PlaySound theSnd
  76.   global PCDEL
  77.   if Get_PlayDub() then
  78.     sound playFile 2, the pathName & "SND02" & PCDEL & theSnd
  79.   end if
  80. end
  81.  
  82. on GoMain
  83.   sound stop 2
  84.   SaveSeenScreens()
  85.   go(1, "NC_MM010.GEO")
  86. end
  87.  
  88. on GoFind
  89.   global FindWD, CDfilePath, PCDEL
  90.   if objectp(FindWD) then
  91.     forget(FindWD)
  92.   end if
  93.   set the cursor of sprite 48 to [400, 401]
  94.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  95.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  96.   set the titleVisible of FindWD to 0
  97.   set the modal of FindWD to 1
  98.   open(FindWD)
  99. end
  100.  
  101. on HideFINDWindow
  102.   global FindWD
  103.   if objectp(FindWD) then
  104.     forget(FindWD)
  105.   end if
  106. end
  107.  
  108. on closeFindWindow
  109.   global FindWD
  110.   if objectp(FindWD) then
  111.     forget(FindWD)
  112.   end if
  113.   set the cursor of sprite 48 to 0
  114.   tell the stage
  115.     continue()
  116.   end tell
  117. end
  118.  
  119. on OpenFind2WD theData
  120.   global Find2WD, CDfilePath, PCDEL
  121.   HideFINDWindow()
  122.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  123.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  124.   set the titleVisible of Find2WD to 0
  125.   set the modal of Find2WD to 1
  126.   tell Find2WD
  127.     UpdateSelection(theData)
  128.   end tell
  129.   open(Find2WD)
  130. end
  131.  
  132. on CloseFind2Window
  133.   global Find2WD
  134.   if objectp(Find2WD) then
  135.     forget(Find2WD)
  136.   end if
  137.   set the cursor of sprite 48 to 0
  138.   tell the stage
  139.     continue()
  140.   end tell
  141. end
  142.  
  143. on GoIndex
  144.   global IndexWD, CDfilePath, PCDEL
  145.   if objectp(IndexWD) then
  146.     forget(IndexWD)
  147.   end if
  148.   set the cursor of sprite 48 to [400, 401]
  149.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  150.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  151.   set the titleVisible of IndexWD to 0
  152.   set the modal of IndexWD to 1
  153.   tell IndexWD
  154.     RonenInit()
  155.   end tell
  156.   open(IndexWD)
  157. end
  158.  
  159. on OpenWordWD theData
  160.   global WordWD, CDfilePath, PCDEL
  161.   HIdeIndexWindow()
  162.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  163.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  164.   set the titleVisible of WordWD to 0
  165.   set the modal of WordWD to 1
  166.   tell WordWD
  167.     UpdateSelection(theData)
  168.   end tell
  169.   open(WordWD)
  170. end
  171.  
  172. on CloseWordWindow
  173.   global WordWD
  174.   if objectp(WordWD) then
  175.     forget(WordWD)
  176.   end if
  177.   set the cursor of sprite 48 to 0
  178.   tell the stage
  179.     continue()
  180.   end tell
  181. end
  182.  
  183. on HIdeIndexWindow
  184.   global IndexWD
  185.   if objectp(IndexWD) then
  186.     forget(IndexWD)
  187.   end if
  188. end
  189.  
  190. on CloseIndexWindow
  191.   global IndexWD
  192.   if objectp(IndexWD) then
  193.     forget(IndexWD)
  194.   end if
  195.   set the cursor of sprite 48 to 0
  196.   tell the stage
  197.     continue()
  198.   end tell
  199. end
  200.  
  201. on GoIndexMovie thekind
  202.   if thekind = "tool" then
  203.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  204.   else
  205.     go(1, Get_IndexMovie())
  206.   end if
  207. end
  208.  
  209. on set_IndexMovie theMoov
  210.   global IndexMovie
  211.   set IndexMovie to theMoov
  212. end
  213.  
  214. on Get_IndexMovie theMoov
  215.   global IndexMovie
  216.   return IndexMovie
  217. end
  218.  
  219. on GoTags
  220.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  221.   if objectp(TagWD) then
  222.     forget(TagWD)
  223.   end if
  224.   set the cursor of sprite 48 to [400, 401]
  225.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  226.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  227.   set the titleVisible of TagWD to 0
  228.   set the modal of TagWD to 1
  229.   tell TagWD
  230.     UpdateFields()
  231.     PlaceMySlider()
  232.     init()
  233.   end tell
  234.   open(TagWD)
  235. end
  236.  
  237. on OpenRenameWD theLine
  238.   global RenameWD, CDfilePath, PCDEL
  239.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  240.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  241.   set the titleVisible of RenameWD to 0
  242.   set the modal of RenameWD to 1
  243.   tell RenameWD
  244.     UpdateLine(theLine)
  245.   end tell
  246.   open(RenameWD)
  247. end
  248.  
  249. on UpdateRenameWD theText
  250.   global TagWD
  251.   tell TagWD
  252.     UpdateRename(theText)
  253.   end tell
  254.   CloseRenameWD()
  255. end
  256.  
  257. on CloseRenameWD
  258.   global RenameWD
  259.   if objectp(RenameWD) then
  260.     forget(RenameWD)
  261.   end if
  262. end
  263.  
  264. on OpenSureWD
  265.   global SureWD, CDfilePath, PCDEL
  266.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  267.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  268.   set the titleVisible of SureWD to 0
  269.   set the modal of SureWD to 1
  270.   open(SureWD)
  271. end
  272.  
  273. on CloseSureWD
  274.   global SureWD
  275.   if objectp(SureWD) then
  276.     forget(SureWD)
  277.   end if
  278. end
  279.  
  280. on ClearAllTags
  281.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  282.   CloseSureWD()
  283.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & "UNMARK")
  284.   set TAGS_LIST to []
  285.   set TAGS_TITLES to EMPTY
  286.   set TAGS_DATA to EMPTY
  287.   tell TagWD
  288.     UpdateFields()
  289.     PlaceMySlider()
  290.     init()
  291.   end tell
  292.   updateStage()
  293. end
  294.  
  295. on CloseTagWindow
  296.   global TagWD
  297.   if objectp(TagWD) then
  298.     forget(TagWD)
  299.   end if
  300.   set the cursor of sprite 48 to 0
  301.   tell the stage
  302.     continue()
  303.   end tell
  304. end
  305.  
  306. on GoTagMovie
  307.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  308. end
  309.  
  310. on Set_TagMovie theMovie
  311.   global TagMovie
  312.   set TagMovie to theMovie
  313. end
  314.  
  315. on Get_TagMovie
  316.   global TagMovie
  317.   return TagMovie
  318. end
  319.  
  320. on MarkScreen toMark
  321.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST
  322.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & toMark)
  323.   set movieName to the movieName
  324.   if toMark = "MARK" then
  325.     setAt(TAGS_LIST, count(TAGS_LIST) + 1, movieName)
  326.     set LineNum to count(TAGS_LIST)
  327.     set TheTitle to item Get_CDcounter() of line integer(Get_CurrentTool()) of CardTitles
  328.     put TheTitle into line LineNum of TAGS_TITLES
  329.     put movieName into item 1 of line LineNum of TAGS_DATA
  330.     put Get_CurrentTool() into item 2 of line LineNum of TAGS_DATA
  331.     put Get_ScreenSubject() into item 3 of line LineNum of TAGS_DATA
  332.   else
  333.     set itemNum to getOne(TAGS_LIST, movieName)
  334.     deleteAt(TAGS_LIST, itemNum)
  335.     delete line itemNum of TAGS_TITLES
  336.     delete line itemNum of TAGS_DATA
  337.   end if
  338.   updateStage()
  339. end
  340.  
  341. on UpdateMark
  342.   global TAGS_LIST
  343.   set movieName to the movieName
  344.   if getOne(TAGS_LIST, movieName) then
  345.     set the castNum of sprite Get_MarkSprite() to the number of cast "V_MARK"
  346.   end if
  347. end
  348.  
  349. on HandleSound
  350.   global volumeWindow, CDfilePath, PCDEL
  351.   if objectp(volumeWindow) then
  352.     forget(volumeWindow)
  353.   end if
  354.   EnableBtn("SOUND", get_SOUNDSprite())
  355.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  356.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  357.   set the titleVisible of volumeWindow to 0
  358.   tell volumeWindow
  359.     RestoreSoundStatus()
  360.   end tell
  361.   open(volumeWindow)
  362. end
  363.  
  364. on handleQuit
  365.   global QuitWindow, CDfilePath, PCDEL
  366.   cursor(4)
  367.   if objectp(QuitWindow) then
  368.     forget(QuitWindow)
  369.   end if
  370.   set the cursor of sprite 48 to [400, 401]
  371.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  372.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  373.   set the titleVisible of QuitWindow to 0
  374.   set the modal of QuitWindow to 1
  375.   open(QuitWindow)
  376. end
  377.  
  378. on handleHELP
  379.   EnableBtn("HELP", get_HELPSprite())
  380.   openHelpWd()
  381. end
  382.  
  383. on openHelpWd
  384.   global helpWD, lastFrame, CDfilePath, PCDEL
  385.   set the cursor of sprite 48 to [400, 401]
  386.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  387.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  388.   set the titleVisible of helpWD to 0
  389.   set the modal of helpWD to 1
  390.   open(helpWD)
  391.   set lastFrame to the frame
  392.   go("helpLoop")
  393. end
  394.  
  395. on closeHelpWd
  396.   global helpWD, lastFrame
  397.   set the cursor of sprite 48 to 0
  398.   forget(helpWD)
  399.   go(lastFrame)
  400. end
  401.  
  402. on HandleNEXT
  403.   set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
  404.   updateStage()
  405.   EnableBtn("NEXT", get_NEXTSprite())
  406.   GoNext()
  407. end
  408.  
  409. on HandleBACK
  410.   if Get_NEXT() > 5 then
  411.     set the puppet of sprite getFbFld_SP() to 0
  412.   end if
  413.   EnableBtn("BACK", get_BACKSprite())
  414.   EnableBtn("NEXT", get_NEXTSprite())
  415.   Set_NEXT(1)
  416.   sound stop 2
  417.   go("start")
  418. end
  419.  
  420. on HandleGLOSSARY
  421.   global DicWindow
  422.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  423.   set the cursor of sprite 48 to [400, 401]
  424.   open(DicWindow)
  425.   tell the stage
  426.     pause()
  427.   end tell
  428.   tell DicWindow
  429.     go(2)
  430.   end tell
  431. end
  432.  
  433. on closeGLOSSARYwindow
  434.   set the cursor of sprite 48 to 0
  435.   continue()
  436. end
  437.  
  438. on closeNotePadWindow
  439.   set the cursor of sprite 48 to 0
  440.   continue()
  441. end
  442.  
  443. on HandleNOTEPAD
  444.   global NoteBookWindow, CDfilePath, PCDEL
  445.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  446.   set the cursor of sprite 48 to [400, 401]
  447.   if objectp(NoteBookWindow) then
  448.     forget(NoteBookWindow)
  449.   end if
  450.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  451.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  452.   set NBRect to the rect of NoteBookWindow
  453.   set x1 to getAt(NBRect, 1)
  454.   set y1 to getAt(NBRect, 2)
  455.   set x2 to getAt(NBRect, 3)
  456.   set y2 to getAt(NBRect, 4)
  457.   set the modal of NoteBookWindow to 1
  458.   set the windowType of NoteBookWindow to 2
  459.   set the titleVisible of window "NoteBook" to 0
  460.   open(NoteBookWindow)
  461. end
  462.  
  463. on createNoteBook
  464.   global NBPrintWindow, CDfilePath, PCDEL
  465.   if objectp(NBPrintWindow) then
  466.     forget(NBPrintWindow)
  467.   end if
  468.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  469.   set StageRect to the rect of the stage
  470.   set x1 to getAt(StageRect, 1)
  471.   set y1 to getAt(StageRect, 2)
  472.   set x2 to getAt(StageRect, 3)
  473.   set y2 to getAt(StageRect, 4)
  474.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  475.   set NBRect to the rect of NBPrintWindow
  476.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  477.   set the windowType of NBPrintWindow to 2
  478.   open(NBPrintWindow)
  479. end
  480.  
  481. on closePrintWindow
  482.   RestoreHilites()
  483. end
  484.  
  485. on closeQuitWindow
  486.   global QuitWindow
  487.   set the cursor of sprite 48 to 0
  488.   forget(QuitWindow)
  489.   continue()
  490. end
  491.  
  492. on leaveApplication
  493.   global QuitWindow, UsersData, TheBackWindow
  494.   forget(QuitWindow)
  495.   if the machineType <> 256 then
  496.   end if
  497.   quit()
  498. end
  499.  
  500. on keyDown
  501.   if not get_Disabled() then
  502.     if the commandDown and ((the key = "q") or (the key = ".")) then
  503.       handleQuit()
  504.     else
  505.       if (the keyCode = 76) or (the keyCode = 36) then
  506.         if Get_NEXT() <> 6 then
  507.           HandleNEXT()
  508.         end if
  509.       else
  510.         pass()
  511.       end if
  512.     end if
  513.   end if
  514. end
  515.  
  516. on CheckOpenWindow
  517.   global volumeWindow
  518.   if objectp(volumeWindow) then
  519.     forget(volumeWindow)
  520.     continue()
  521.   end if
  522. end
  523.  
  524. on CheckRollOver
  525.   if rollOver(get_IndexSprite()) then
  526.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  527.     set Hloc to the locH of sprite get_IndexSprite()
  528.     set Vloc to the locV of sprite get_IndexSprite()
  529.   else
  530.     if rollOver(get_FindSprite()) then
  531.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  532.       set Hloc to the locH of sprite get_FindSprite()
  533.       set Vloc to the locV of sprite get_FindSprite()
  534.     else
  535.       if rollOver(Get_TagWdSprite()) then
  536.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  537.         set Hloc to the locH of sprite Get_TagWdSprite()
  538.         set Vloc to the locV of sprite Get_TagWdSprite()
  539.       else
  540.         set Hloc to EMPTY
  541.       end if
  542.     end if
  543.   end if
  544.   if Hloc <> EMPTY then
  545.     set the locH of sprite get_NavigatorHL() to Hloc
  546.     set the locV of sprite get_NavigatorHL() to Vloc
  547.     set the visible of sprite get_NavigatorHL() to 1
  548.     updateStage()
  549.   else
  550.     set the visible of sprite get_NavigatorHL() to 0
  551.     updateStage()
  552.   end if
  553. end
  554.  
  555. on setDefaultCursor
  556.   set cursorList to getCursorList()
  557.   set counter to count(cursorList)
  558.   repeat with i = 1 to counter
  559.     set currItem to getAt(cursorList, i)
  560.     if currItem <> 0 then
  561.       set CursorCastNum to getCursor(currItem)
  562.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  563.     end if
  564.   end repeat
  565. end
  566.  
  567. on UpdateCursors theSp, theCursor
  568.   global cursorList
  569.   setAt(cursorList, theSp, theCursor)
  570.   if theCursor = 0 then
  571.     set the cursor of sprite theSp to theCursor
  572.   else
  573.     set CursorCastNum to getCursor(theCursor)
  574.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  575.   end if
  576. end
  577.  
  578. on setEmptyCursor
  579.   set cursorList to getCursorList()
  580.   set counter to count(cursorList)
  581.   repeat with i = 1 to counter
  582.     set currItem to getAt(cursorList, i)
  583.     if currItem <> 0 then
  584.       set the cursor of sprite i to 0
  585.       setAt(cursorList, i, 0)
  586.     end if
  587.   end repeat
  588. end
  589.  
  590. on setCursorTool int
  591.   global CursorTool
  592.   set CursorTool to int
  593. end
  594.  
  595. on initCursorCastNum
  596.   global CursorCastNum
  597.   set CursorCastNum to "400,402,404,406,408"
  598. end
  599.  
  600. on getCursor cursorNum
  601.   global CursorCastNum
  602.   return integer(item cursorNum of CursorCastNum)
  603. end
  604.  
  605. on initCursorList list
  606.   global cursorList
  607.   if list = 1 then
  608.     set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3]
  609.   else
  610.     if list = 2 then
  611.       set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 1, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 0, 0]
  612.     else
  613.       if list = 3 then
  614.         set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 3, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 0, 0]
  615.       else
  616.         if list = 4 then
  617.           set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 0, 0]
  618.         else
  619.           if list = 5 then
  620.             set cursorList to [2, 3, 4, 0, 0, 4, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3]
  621.           end if
  622.         end if
  623.       end if
  624.     end if
  625.   end if
  626.   setDefaultCursor()
  627. end
  628.  
  629. on getCursorList
  630.   global cursorList
  631.   return cursorList
  632. end
  633.  
  634. on ___BTNS_HANDLERS___
  635. end
  636.  
  637. on switchButt spriteNum, castDown, macroName
  638.   if getRollName() <> EMPTY then
  639.     set spNum to EMPTY
  640.     do("put get_" & getRollName() & "Sprite() into spNum")
  641.     set the castNum of sprite spNum to the number of cast getRollName()
  642.     setRollName(EMPTY)
  643.   end if
  644.   set flag to 0
  645.   set SaveCast to the castNum of sprite spriteNum
  646.   set flag to swapCast(spriteNum, SaveCast, castDown)
  647.   repeat while the stillDown
  648.     set flag to swapCast(spriteNum, SaveCast, castDown)
  649.   end repeat
  650.   if flag = 1 then
  651.     sound stop 2
  652.     do(macroName)
  653.   end if
  654. end
  655.  
  656. on swapCast spriteNum, SaveCast, castDown
  657.   if rollOver(spriteNum) then
  658.     set the castNum of sprite spriteNum to the number of cast castDown
  659.     updateStage()
  660.     return 1
  661.   else
  662.     set the castNum of sprite spriteNum to the number of cast SaveCast
  663.     updateStage()
  664.     return 0
  665.   end if
  666. end
  667.  
  668. on DisableBtn btnName, btnSprite
  669.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  670. end
  671.  
  672. on EnableBtn btnName, btnSprite
  673.   set the castNum of sprite btnSprite to the number of cast btnName
  674. end
  675.  
  676. on setRollName theName
  677.   global RollName
  678.   set RollName to theName
  679. end
  680.  
  681. on getRollName
  682.   global RollName
  683.   return RollName
  684. end
  685.  
  686. on Set_NOTEPADSprite theSp
  687.   global NOTEPADSprite
  688.   set NOTEPADSprite to theSp
  689. end
  690.  
  691. on Get_NOTEPADSprite
  692.   global NOTEPADSprite
  693.   return NOTEPADSprite
  694. end
  695.  
  696. on Set_GLOSSARYSprite theSp
  697.   global GLOSSARYSprite
  698.   set GLOSSARYSprite to theSp
  699. end
  700.  
  701. on Get_GLOSSARYSprite
  702.   global GLOSSARYSprite
  703.   return GLOSSARYSprite
  704. end
  705.  
  706. on Set_SoundSprite theSp
  707.   global SoundSprite
  708.   set SoundSprite to theSp
  709. end
  710.  
  711. on get_SOUNDSprite
  712.   global SoundSprite
  713.   return SoundSprite
  714. end
  715.  
  716. on Set_HelpSprite theSp
  717.   global HelpSprite
  718.   set HelpSprite to theSp
  719. end
  720.  
  721. on get_HELPSprite
  722.   global HelpSprite
  723.   return HelpSprite
  724. end
  725.  
  726. on Set_NEXTSprite theSp
  727.   global NEXTSprite
  728.   set NEXTSprite to theSp
  729. end
  730.  
  731. on get_NEXTSprite
  732.   global NEXTSprite
  733.   return NEXTSprite
  734. end
  735.  
  736. on Set_BACKSprite theSp
  737.   global BACKSprite
  738.   set BACKSprite to theSp
  739. end
  740.  
  741. on get_BACKSprite
  742.   global BACKSprite
  743.   return BACKSprite
  744. end
  745.  
  746. on Set_NavigatorHL theSp
  747.   global NavigatorHL
  748.   set NavigatorHL to theSp
  749. end
  750.  
  751. on get_NavigatorHL
  752.   global NavigatorHL
  753.   return NavigatorHL
  754. end
  755.  
  756. on Set_IndexSprite theSp
  757.   global IndexSprite
  758.   set IndexSprite to theSp
  759. end
  760.  
  761. on get_IndexSprite
  762.   global IndexSprite
  763.   return IndexSprite
  764. end
  765.  
  766. on Set_TagWDSprite theSp
  767.   global TagWdSprite
  768.   set TagWdSprite to theSp
  769. end
  770.  
  771. on Get_TagWdSprite
  772.   global TagWdSprite
  773.   return TagWdSprite
  774. end
  775.  
  776. on Set_FindSprite theSp
  777.   global FindSprite
  778.   set FindSprite to theSp
  779. end
  780.  
  781. on get_FindSprite
  782.   global FindSprite
  783.   return FindSprite
  784. end
  785.  
  786. on Set_MainSprite theSp
  787.   global MainSprite
  788.   set MainSprite to theSp
  789. end
  790.  
  791. on get_MainSprite
  792.   global MainSprite
  793.   return MainSprite
  794. end
  795.  
  796. on Set_NEXT theSp
  797.   global next
  798.   set next to theSp
  799. end
  800.  
  801. on Get_NEXT
  802.   global next
  803.   return next
  804. end
  805.  
  806. on Set_PlayDub theMode
  807.   global PlayDub
  808.   set PlayDub to theMode
  809. end
  810.  
  811. on Get_PlayDub
  812.   global PlayDub
  813.   return PlayDub
  814. end
  815.  
  816. on Set_ScreenSubject theNum
  817.   global ScreenSubject
  818.   set ScreenSubject to theNum
  819. end
  820.  
  821. on Get_ScreenSubject
  822.   global ScreenSubject
  823.   return ScreenSubject
  824. end
  825.  
  826. on setTimer int
  827.   global theTime
  828.   set theTime to int
  829. end
  830.  
  831. on getTimer
  832.   global theTime
  833.   return theTime
  834. end
  835.  
  836. on DisableBTNS
  837.   global DisableMode
  838.   set DisableMode to 1
  839. end
  840.  
  841. on EnableBtns
  842.   global DisableMode
  843.   set DisableMode to 0
  844. end
  845.  
  846. on get_Disabled
  847.   global DisableMode
  848.   return DisableMode
  849. end
  850.